﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace Woodlands
{
    /// <summary>
    /// Interaction logic for DialogBox.xaml
    /// </summary>
    public partial class ModuleDialogBox : Window
    {
        ModuleWindow s;
        public ModuleDialogBox(ModuleWindow sw)
        {
            InitializeComponent();
            s = sw;
            this.Title = s.resultsBox.SelectedValue.ToString();
            messageLbl.Content = "What would you like to do with the module\n"
                + s.resultsBox.SelectedValue.ToString();
        }

        private void amendBtn_Click(object sender, RoutedEventArgs e)
        {
            s.DialogValue = "amend";
            this.Close();
        }

        private void achiveBtn_Click(object sender, RoutedEventArgs e)
        {
            s.DialogValue = "archive";
            this.Close();
        }

        private void exitBtn_Click_1(object sender, RoutedEventArgs e)
        {
            s.DialogValue = "exit";
            this.Close();
        }
    }
}
